home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ IE Help Menu 2.xpl < prev    next >
Text File  |  2000-08-07  |  2KB  |  76 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="5"
  4. "UIPATH"="Internet\Internet Explorer\Appearance\"
  5. "NAME"="Help Menu Options (IE 5.01 only)"
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.01"
  8. "TEXT 1"="Show Help menu"
  9. "TEXT 2"="Show "Tip of the Day" in Help menu"
  10. "TEXT 3"="Show "Tutorial" in Help menu"
  11. "TEXT 4"="Show "Send feedback" in Help menu"
  12. "TEXT 5"="Show "For Netscape..." in Help menu"
  13. "DESCRIPTION 1"="To show an item in the Help menu, activate it. To hide it, deactivate it."
  14. "DESCRIPTION 2"="Please note that you need to restart Internet Explorer so the changes can take effect."
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"=" "
  19. "COMMENT 2"=" "
  20.  
  21.  
  22.  
  23. sPath="HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
  24. sHLP="NoHelpMenu"
  25. sTIP="NoHelpItemTipOfTheDay" 'all dword (1 = remove)
  26. sTUT="NoHelpItemTutorial"
  27. sFED="NoHelpItemSendFeedback"
  28. sNET="NoHelpItemNetscapeHelp"
  29.  
  30.  
  31. Sub Plugin_Initialize 
  32.  i=RegReadValue(sPath & sHLP)
  33.  if i<>1 then SetUIElement 1,true
  34.  
  35.  i=RegReadValue(sPath & sTIP)
  36.  if i<>1 then SetUIElement 2,true
  37.  
  38.  i=RegReadValue(sPath & sTUT)
  39.  if i<>1 then SetUIElement 3,true
  40.  
  41.  i=RegReadValue(sPath & sFED)
  42.  if i<>1 then SetUIElement 4,true
  43.  
  44.  i=RegReadValue(sPath & sNET)
  45.  if i<>1 then SetUIElement 5,true
  46. End Sub
  47.  
  48. Sub Plugin_CheckData(ElementIndex)
  49. End Sub
  50.  
  51. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  52.  Call WriteIt(1,sHLP)
  53.  Call WriteIt(2,sTIP)
  54.  Call WriteIt(3,sTUT)
  55.  Call WriteIt(4,sFED)
  56.  Call WriteIt(5,sNET)
  57. End Sub
  58.  
  59. Sub WriteIt(ITM,VAL)
  60.  b=GetUIElement(ITM)
  61.  if b=false then
  62.     call RegWriteValue(sPATH & VAL,1,2)
  63.  else
  64.     chk=RegReadValue(sPATH & VAL)
  65.     if IsEmpty(chk)=false then
  66.        Call RegDeleteValue(sPATH & VAL)
  67.     end if
  68.  end if
  69. end sub
  70.  
  71. Sub Plugin_Terminate 
  72. End Sub
  73.  
  74.  
  75.  
  76.